package Test_1106;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        mySingleList.clear();
        mySingleList.display();
    }
    public static void main5(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.addindex(3,33);
        mySingleList.display();
        mySingleList.removeAllKey(33);
        mySingleList.display();
    }
    public static void main4(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        mySingleList.remove(22);
        mySingleList.remove(11);
        mySingleList.display();
        mySingleList.remove(12);
        mySingleList.display();
    }
    public static void main3(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        boolean ret= mySingleList.contains(22);
        System.out.println(ret);
    }
    public static void main2(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        mySingleList.addindex(4,90);
        mySingleList.addindex(2,24);
        mySingleList.addindex(0,35);
        mySingleList.display();
    }
    public static void main1(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createList();
        mySingleList.display();
        mySingleList.addFirst(56);
        mySingleList.display();
        mySingleList.addLast(111);
        mySingleList.display();
    }
}
